<%-- 
    Document   : payementinfo
    Created on : 20-déc.-2012, 11:51:15
    Author     : Anthares
--%>
<%@page session="false" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="jt" %>
<core:set var="pagename" scope="request" value="order"/>
<fmt:setLocale value="${requestScope.locale}"/>
<fmt:setBundle basename="Languages.lang"/>
<jt:layout pageTitle="Payement Infos">
    <jsp:body>
        <form id="payement-form" method="GET" action="<core:url value="/order"/>">
            <label><fmt:message key="order.payement"/> : <select id="payement-select" name="payement">
                    <option value="-1"><fmt:message key="order.payement.select"/></option>
                    <core:forEach items="${modePayement}" var="item">
                        <option value="${item.modePayId}">${item.traduction.libelle}</option>
                    </core:forEach>
                </select></label>
            <script>
                $("#payement-select").change(function(){
                    if($("#payement-select").val()==-1) return;
                    $("#payement-form").submit();
                });
            </script>
        </form>

                    <core:if test="${paypal}"><form></form></core:if>
                    

</jsp:body>
</jt:layout>